package kargo.suratkargokargotakip;

import android.R.string;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.TextView;

public class KargoTakipSecenekleri extends Activity implements OnClickListener {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_kargo_takip_secenekleri);

		Button btnKargoTakipNoIle = (Button) findViewById(R.id.btnKargoTakipNoIle);

		btnKargoTakipNoIle.setOnClickListener(this);

		Button btnFaturaBilgileriIle = (Button) findViewById(R.id.btnFaturaBilgileriIle);

		btnFaturaBilgileriIle.setOnClickListener(this);

		Button btnTesellumBilgileriIle = (Button) findViewById(R.id.btnTesellumBilgileriIle);

		btnTesellumBilgileriIle.setOnClickListener(this);

		Button btnBanaAitSiparisNoIle = (Button) findViewById(R.id.btnBanaAitSiparisNoIle);

		btnBanaAitSiparisNoIle.setOnClickListener(this);
		
		ImageButton butonUcretHesapla  = (ImageButton) findViewById(R.id.butonUcretHesapla);
		
		butonUcretHesapla.setOnClickListener(new OnClickListener(){
			@Override
			public void onClick(View v){
				Intent myIntent = new Intent(v.getContext(),UcretHesaplaActivity.class);
				v.getContext().startActivity(myIntent);
			}
		});
	}

	@Override
	public void onClick(View v) {

		Intent i = new Intent(getApplicationContext(), KargoTakipActivity.class);
		i.putExtra("SecenekButtonId", v.getId());

		Bundle extras = getIntent().getExtras();
		String deger = extras.getString("CariKodu");

		i.putExtra("CariKodu", deger);

		startActivity(i);

	}

}
